<%@page import="javax.print.DocFlavor.READER"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>二级分类页面</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/common.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/ej_class.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/login.css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.8.2.min.js"></script>
<script src="<%=request.getContextPath() %>/js/jquery.validate.js"></script>
<script type="text/javascript">
function a(){
  	location.href="<%=request.getContextPath()%>/user/toRegist";
}
//validate验证
$(function(){
	$("#regist").validate({
		rules:{
			username:{
				required:true,
			},
			password:{
				required:true,
			}
		},
		messages:{
			username:{
				required:"用户不能为空"
			},
			password:{
				required:"密码不能为空"
			}
		}
	});
})

</script>
</head>
<body>

<div class="w_980 m">
  
  <div class="w_978 fl_l ma_t10 bor">
  <div class="ej_l_title bor_t">用户登录</div>
  <div class="login_l fl_l">
  <form action="<%=request.getContextPath() %>/user/login" id="regist" onsubmit="return check();">
    <table width="90%" border="0" cellspacing="0" cellpadding="0" class="lg_t">
      <tr>
        <td width="28%" class="te_r">用户名：</td>
        <td width="72%"><input type="text" name="username" id="username" class="inputgray" /><span id="msg1"></span></td>
      </tr>
      <tr>
        <td class="te_r">密码：</td>
        <td><input type="password" name="password" id="password" class="inputgray" /><span id="msg2"></span>
          <a href="" class="bluefont">忘记密码？</a></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input type="checkbox" name="checkbox" id="checkbox" value="1" />
        记住用户名 
          <input type="checkbox" name="checkbox2" id="checkbox2" value="1" />
        自动登录</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>
          <input type="submit" name="button" value="登  录" class="btn font14"/> ${state1}
        </td>
      </tr>
    </table>
    </form>
  </div>
  <div class="login_r fl_l">
    <p>现在免费注册成为五金商城用户，便能立刻享受便宜又放心的购物乐趣。</p><p><input type="submit" name="button" value="注册新用户" class="btn1 font14" onclick="a()"/></p></div>
  </div>
  <div class="w_980 fl_l ma_t10 te_m">关于我们 | 联系我们 | 人才招聘 | 商家入驻 | 广告服务 | 移动终端 | 友情链接 | 销售联盟 <br />
    北京市公安局海淀分局备案编号：11010233381  京ICP证070的4523号 <br />
    Copyright2004-2011  五金商城 版权所有</div>
  <div class="w_980 fl_l ma_t10">
    <ul class="footerpic">
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_04.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_05.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_06.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_07.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_09.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_cnnic.jpg" width="91" height="31" /></a></li>
    </ul>
  </div>
</div>
</body>
</html>
    